﻿using System;
using System.Collections.Generic;
using System.Text;
using Pahan.McuFusion.Common;

namespace Pahan.McuFusion.Atmel.AVR
{
    [Serializable]
    public class AvrMemoryClassInfo : MemoryClassInfo
    {
        public AvrMemoryClassInfo(string name, int memorySize, byte emptyValue,
            AvrMemoryParallelOptions parallelOptions, AvrMemorySerialOptions serialOptions,
            bool canRead, bool canWrite, bool canErase) 
            : base(name, memorySize, 1, emptyValue, canRead, canWrite, canErase)
        {
            this.SerialOptions = serialOptions;
            this.ParallelOption = parallelOptions;
        }

        public AvrMemorySerialOptions SerialOptions
        {
            get;
            private set;
        }

        public AvrMemoryParallelOptions ParallelOption
        {
            get;
            private set;
        }
    }
}
